package top.layne.boot.samples.dubbo.consumer.service.impl;

import org.apache.dubbo.config.annotation.Reference;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import top.layne.boot.samples.dubbo.service.DubboService;

@Component
public class DubboServiceImpl implements CommandLineRunner {

    @Reference(version = "1.0")
    private DubboService dubboService;


    @Override
    public void run(String... args) throws Exception {
        dubboService.execute("dubbo service is running");
    }
}
